<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TProgressBar类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_progress_bar-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TProgressBar类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TProgressBar 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_progress_bar.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8547b48223789b69b0cf0016e37f71e5"><td class="memItemLeft" align="right" valign="top"><a id="a8547b48223789b69b0cf0016e37f71e5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TProgressBar</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a8547b48223789b69b0cf0016e37f71e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef8ee7befad2e6728199b7054fb197d"><td class="memItemLeft" align="right" valign="top"><a id="a8ef8ee7befad2e6728199b7054fb197d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TProgressBar</b> (const progress_bar_t *nativeObj)</td></tr>
<tr class="separator:a8ef8ee7befad2e6728199b7054fb197d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b23b21c3eb82bdfe6904c6193ed8ff4"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a0b23b21c3eb82bdfe6904c6193ed8ff4">SetValue</a> (double value)</td></tr>
<tr class="separator:a0b23b21c3eb82bdfe6904c6193ed8ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a911d40d4da97d831afc3fc2d7850728c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a911d40d4da97d831afc3fc2d7850728c">SetMax</a> (double max)</td></tr>
<tr class="separator:a911d40d4da97d831afc3fc2d7850728c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9468c99122498c86e7e5d1614e54d7b2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a9468c99122498c86e7e5d1614e54d7b2">SetFormat</a> (const char *format)</td></tr>
<tr class="separator:a9468c99122498c86e7e5d1614e54d7b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad06afe0aa7720eba069de885e3d7e209"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#ad06afe0aa7720eba069de885e3d7e209">SetVertical</a> (bool vertical)</td></tr>
<tr class="separator:ad06afe0aa7720eba069de885e3d7e209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adac8df8586b5df4249567be50dd7ddf2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#adac8df8586b5df4249567be50dd7ddf2">SetShowText</a> (bool show_text)</td></tr>
<tr class="separator:adac8df8586b5df4249567be50dd7ddf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3aa1b073c391fbbfde51ee7d4e680d9"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#aa3aa1b073c391fbbfde51ee7d4e680d9">SetReverse</a> (bool reverse)</td></tr>
<tr class="separator:aa3aa1b073c391fbbfde51ee7d4e680d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3297a02e08f2be9b0a004e39c6f7c7fb"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a3297a02e08f2be9b0a004e39c6f7c7fb">GetPercent</a> ()</td></tr>
<tr class="separator:a3297a02e08f2be9b0a004e39c6f7c7fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3de7f0efd426b0a727594ed97b20e717"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a3de7f0efd426b0a727594ed97b20e717">GetValue</a> () const</td></tr>
<tr class="separator:a3de7f0efd426b0a727594ed97b20e717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2425ab8c55cc547cd285fa5d9c141cdb"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a2425ab8c55cc547cd285fa5d9c141cdb">GetMax</a> () const</td></tr>
<tr class="separator:a2425ab8c55cc547cd285fa5d9c141cdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c474c3e2f732e9481c2d4747c442397"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a1c474c3e2f732e9481c2d4747c442397">GetFormat</a> () const</td></tr>
<tr class="separator:a1c474c3e2f732e9481c2d4747c442397"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d9bf4a152ad03520ff2d8b01430c78d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a2d9bf4a152ad03520ff2d8b01430c78d">GetVertical</a> () const</td></tr>
<tr class="separator:a2d9bf4a152ad03520ff2d8b01430c78d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad29b506d6160d5319afbce5566f5674d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#ad29b506d6160d5319afbce5566f5674d">GetShowText</a> () const</td></tr>
<tr class="separator:ad29b506d6160d5319afbce5566f5674d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87c9a0008b38ac40bfa9634194fe21ae"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a87c9a0008b38ac40bfa9634194fe21ae">GetReverse</a> () const</td></tr>
<tr class="separator:a87c9a0008b38ac40bfa9634194fe21ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a57109842442900337d8c49c6d869db82"><td class="memItemLeft" align="right" valign="top"><a id="a57109842442900337d8c49c6d869db82"></a>
static <a class="el" href="class_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a57109842442900337d8c49c6d869db82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6dd478fb88543595db3c5ef2152583b"><td class="memItemLeft" align="right" valign="top"><a id="ae6dd478fb88543595db3c5ef2152583b"></a>
static <a class="el" href="class_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:ae6dd478fb88543595db3c5ef2152583b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc46e0f2a0d58f692663226534aba2bb"><td class="memItemLeft" align="right" valign="top"><a id="adc46e0f2a0d58f692663226534aba2bb"></a>
static <a class="el" href="class_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:adc46e0f2a0d58f692663226534aba2bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c6322b54118598ee125b2636ff27453"><td class="memItemLeft" align="right" valign="top"><a id="a0c6322b54118598ee125b2636ff27453"></a>
static <a class="el" href="class_t_progress_bar.html">TProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a0c6322b54118598ee125b2636ff27453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a456dc072e5f46b1e251f2e9ec2f4f5ea"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_progress_bar.html#a456dc072e5f46b1e251f2e9ec2f4f5ea">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a456dc072e5f46b1e251f2e9ec2f4f5ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>进度条控件。</p>
<p>进度条控件可以水平显示也可以垂直显示，由vertical属性决定。</p>
<p>progress_bar_t是widget\_t的子类控件，widget_t的函数均适用于progress_bar_t控件。</p>
<p>在xml中使用"progress\_bar"标签创建进度条控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">progress_bar</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar1&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;128&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;240&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;40&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">progress_bar</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar2&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;280&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;128&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;118&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">vertical</span>=<span class="stringliteral">&quot;true&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/basic.xml">basic demo</a></p>
<p>在c代码中使用函数progress_bar_create创建进度条控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/progress_bar.c">progress_bar demo</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;gold&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L183">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a456dc072e5f46b1e251f2e9ec2f4f5ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a456dc072e5f46b1e251f2e9ec2f4f5ea">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TProgressBar::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建progress_bar对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a1c474c3e2f732e9481c2d4747c442397"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c474c3e2f732e9481c2d4747c442397">&#9670;&nbsp;</a></span>GetFormat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TProgressBar::GetFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>数值到字符串转换时的格式，缺省为"%d"。 </p>

</div>
</div>
<a id="a2425ab8c55cc547cd285fa5d9c141cdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2425ab8c55cc547cd285fa5d9c141cdb">&#9670;&nbsp;</a></span>GetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TProgressBar::GetMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大值(缺省为100)。 </p>

</div>
</div>
<a id="a3297a02e08f2be9b0a004e39c6f7c7fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3297a02e08f2be9b0a004e39c6f7c7fb">&#9670;&nbsp;</a></span>GetPercent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TProgressBar::GetPercent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取进度百分比。</p>
<blockquote class="doxtable">
<p>当max为100时，percent和value取整后一致。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回百分比。 </dd></dl>

</div>
</div>
<a id="a87c9a0008b38ac40bfa9634194fe21ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87c9a0008b38ac40bfa9634194fe21ae">&#9670;&nbsp;</a></span>GetReverse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TProgressBar::GetReverse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否反向显示。如果为TRUE，水平方向从右向左表示增加，垂直方向从上到下表示增加。 </p>

</div>
</div>
<a id="ad29b506d6160d5319afbce5566f5674d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad29b506d6160d5319afbce5566f5674d">&#9670;&nbsp;</a></span>GetShowText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TProgressBar::GetShowText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否显示文本。 </p>

</div>
</div>
<a id="a3de7f0efd426b0a727594ed97b20e717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3de7f0efd426b0a727594ed97b20e717">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TProgressBar::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>进度条的值[0-max]。 </p>

</div>
</div>
<a id="a2d9bf4a152ad03520ff2d8b01430c78d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d9bf4a152ad03520ff2d8b01430c78d">&#9670;&nbsp;</a></span>GetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TProgressBar::GetVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>进度条的是否为垂直方向。 </p>

</div>
</div>
<a id="a9468c99122498c86e7e5d1614e54d7b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9468c99122498c86e7e5d1614e54d7b2">&#9670;&nbsp;</a></span>SetFormat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetFormat </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置格式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>格式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a911d40d4da97d831afc3fc2d7850728c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a911d40d4da97d831afc3fc2d7850728c">&#9670;&nbsp;</a></span>SetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetMax </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa3aa1b073c391fbbfde51ee7d4e680d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3aa1b073c391fbbfde51ee7d4e680d9">&#9670;&nbsp;</a></span>SetReverse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetReverse </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>reverse</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置进度条是否反向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">reverse</td><td>是否反向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="adac8df8586b5df4249567be50dd7ddf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adac8df8586b5df4249567be50dd7ddf2">&#9670;&nbsp;</a></span>SetShowText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetShowText </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>show_text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置进度条的是否显示文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_text</td><td>是否显示文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0b23b21c3eb82bdfe6904c6193ed8ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b23b21c3eb82bdfe6904c6193ed8ff4">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置进度条的进度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>进度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad06afe0aa7720eba069de885e3d7e209"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad06afe0aa7720eba069de885e3d7e209">&#9670;&nbsp;</a></span>SetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TProgressBar::SetVertical </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置进度条的方向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>是否为垂直方向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
